package com.javaking.clanteam.hvz.sql;

import org.json.JSONArray;
import org.json.JSONException;

public class HVZUserArray extends JSONArray {

	/**
	 * Return the value at index if it exists and is an HVZUser or
	 * null if an error occurred
	 */
	public HVZUser getHVZUser(int index)
	{
		try {
			HVZUser user = new HVZUser(getJSONObject(index));
			return user;
		} catch(JSONException e) {
			return null;
		}
	}
	
	
}
